<?php

$LIBPATH = "/usr/local/apache2/htdocs/";

$command_string = "/bin/cp -rf /etc/config/config.xml /usr/local/apache2/htdocs/ && sync && sync && sync && sync";

shell_exec($command_string);
//print "Apply Run Env Setting......";

include_once "function_net_tools.php";
ApplyNetDevInfo();
//print "Apply Net Eth Setting......";

include_once "function_net_bridge.php";
ApplySysAllBridgeDevInfo();
//print "Apply Net Bridge Setting...";

include_once "function_net_vlan.php";
ApplySysAllVlanDevInfo();
//print "Apply Net Vlan Setting.....";

include_once "function_net_route.php";
ApplyStaticRoutes();
ApplyPolicyRoutes();
//print "Apply Net Route Setting....";

include_once "function_net_dns.php";
$dns = new CDns();
$dns->Apply();
//print "Apply DNS Setting..........\n";

include_once "function_sec_filter.php";
$sf = new CSecFilter();
$sf -> Apply();
//print "Apply Sec Filter Setting...\n";

include_once "function_sec_nat.php";
$nat = new CNat();
$nat -> Apply();
//print "Apply Sec Nat Setting......\n";


include_once "function_admin_manage.php";
ApplyAdminToSystem_Rule();
//print "Apply Sys Admin Setting....\n";

include_once "function_dhcp_operate.php";
ApplySysDhcp();
//print "Apply Net DHCP Setting.....\n";

//include_once "function_sec_keyword.php";
//ApplySysKeyWordFilter();
////print "Apply Net Vlan Setting.....";

include_once "function_admin_manage.php";
InitApplySystemAllAdmin();
//print "Apply Sys Admin Setting....\n";

include_once "function_sec_ipmac.php";
//ApplySysIpMacBind();
////print "Apply Net Vlan Setting.....";

include_once "function_sec_proxy.php";
ApplySysProxyConfig();
//print "Apply Net Proxy Setting....\n";

include_once "function_log_config.php";
ApplySysLogConfig();
//print "Apply Net Log Setting......\n";

include_once "function_sys_debug.php";
$rd = new CRemoteDebug();
$rd -> Apply();
//print "Apply Net Debug Setting....\n";

include_once "function_sys_time.php";
$time = new CNetTime();
$time -> Apply();
//print "Apply Net Time Setting.....\n";

include_once "function_net_snmp.php";
ApplyXmlSnmp();
//print "Apply Net Snmp Setting.....\n";

include_once "function_vpn_ssl.php";
$vpn_ssl = new CVPN_SSL();
$vpn_ssl -> Apply();
//print "Apply Net VPN Setting......\n";

echo "\n"

?>
